<template>
  <manufacturer-form
    @save-manufacturer="addManufacturer"
    :model="model"
  >
  </manufacturer-form>
</template>

<script>
import ManufacturerForm from '@/components/products/ManufactureForm.vue'
export default {
  data () {
    return {
      model: {}
    }
  },
  methods: {
    addManufacturer (model) {
      this.$store.dispatch('addManufacturers', {
        manufacturer: model
      })
    }
  },
  components: {
    'manufacturer-form': ManufacturerForm
  }
}
</script>
